rem MUST BE REPLACED WITH MAVEN OR ANT

set path=C:\Program Files\Sybase\Shared\PowerBuilder\jdk1.4.2_06\bin;%path%

rem set JDK_HOME=C:\Program Files\jdk1.4.1
rem set JAVA_HOME=%JDK_HOME%\lib
"javac" -classpath .;.\lib\jconn3.jar;.\lib\jTDS3.jar;.\lib\mysql-connector-java-3.1.13-bin.jar;.\lib\jtds-1.2.jar;"%JAVA_HOME%\lib" -d ".\classes" .\src\com\fm\jbsql\entry\*.java .\src\com\fm\jbsql\sql\*.java .\src\com\fm\jbsql\util\*.java
if errorlevel 1 goto error_javac

if not exist .\classes\com\fm\jbsql\resources. mkdir .\classes\com\fm\jbsql\resources.
copy /Y .\src\com\fm\jbsql\resources\*.properties .\classes\com\fm\jbsql\resources\
if errorlevel 1 goto error_javac

call jar_.bat
if errorlevel 1 goto error_jar

exit /B 0

:error_javac
echo "ERROR: Failed to compile."
exit /B 1

:error_jar
echo "ERROR: Failed to jar."
exit /B 1

#-lFINEST -Us_batch -Pbatch_s -S10.100.3.4:6500 -Dopale2000 -Csybase -Jutf8
#-lFINEST -Uroot -Pmontmartr -Slocalhost:3306 -Dtest -Cmysql -Jutf8
#-iselect.sql -lFINEST -Uroot -Pmontmartr -Slocalhost:3306 -Dtest -Cmysql -Jutf8
#"C:\Program Files\Java\jdk1.5.0_01\bin\javac" -cp .;".\lib\mysql-connector-java-3.1.13-bin.jar";".\lib\jtds-1.2.jar";".\lib\jconn2.jar";"%JAVA_HOME%\lib" -d ".\classes" ".\src\com\fm\jbsql\sql\DbDriverType.java" ".\src\com\fm\jbsql\sql\DbDriverTypeSelector.java" ".\src\com\fm\jbsql\sql\SQLScriptCompiler.java" ".\src\com\fm\jbsql\sql\IDbDriver.java" ".\src\com\fm\jbsql\sql\DbDriverMysql.java" ".\src\com\fm\jbsql\sql\DbDriverSybase.java" ".\src\com\fm\jbsql\sql\DbDriverMSSQL.java" ".\src\com\fm\jbsql\util\MySAXApp.java" ".\src\com\fm\jbsql\util\StringComparator.java" ".\src\com\fm\jbsql\util\CmdOpt.java" ".\src\com\fm\jbsql\entry\Jbsql.java" ".\src\com\fm\jbsql\entry\EntryManager.java" ".\src\com\fm\jbsql\entry\Entry.java"
